<!doctype html>
<html>
<head>
<title>泰康医生</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="style/main.css">
<link rel="stylesheet" href="http://imgcache.qq.com/tencentvideo_v1/vstyle/mobile/v2/style/player.css">
<script type="text/javascript" src="../uiframe/css/calendar/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../uiframe/css/calendar/jquery.easyui.min.js"></script> 
<script src="../uiframe/report/tbtouch.js" type="text/javascript"></script>
<script src="../uiframe/report/menu.js" type="text/javascript"></script>
<script src="../uiframe/report/tms.js" type="text/javascript"></script>
<script type="text/javascript" src="../uiframe/scripts/common.js"></script>
<script type="text/javascript" src="bannerdetail.js"></script>
<!-- 腾讯视频，另外加入的js -->
<script type="text/javascript" src="http://imgcache.qq.com/tencentvideo_v1/tvp/js/module/html5player.js"></script>
<script type="text/javascript" src="http://imgcache.qq.com/tencentvideo_v1/tvp/js/plugins/loadingad.js"></script>
<script type="text/javascript" src="http://v.qq.com/iframe/tvp.config.js"></script>
<!-- 引用腾讯视频 -->
<!-- 完全版(内核是异步按需加载) 支持内核flash、HTML5、控件、MP4 链接-->
<!-- <script type="text/javascript" src="http://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2.js"></script> -->

<!-- 移动设备点播版本  支持内核flash、HTML5-->
<!-- <script type="text/javascript" src="http://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2_mobile.js"></script> -->

<!-- html5专用 -->
<script type="text/javascript" src="http://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2_html5.js"></script>

<!-- jQuery 插件版本(内核异步按需加载)，仅支持jQuery1.7 以上版本  支持内核flash、HTML5、控件-->
<!-- <script type="text/javascript" src="http://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2_jq.js"></script> -->
<!-- <script type="text/javascript">
		/* //初始化数据 关于页面的尺寸的设置
		var width = window.innerWidth, height = parseInt(parseInt(width
				* (9 / 16))), height = height > window.innerHeight ? window.innerHeight
				: height;
		window.tvpSetting = {
			width : width,
			height : height,
		}; */
		var videoid="p01880rv9c9";
		//html5模式
	


		var width = window.innerWidth, height = parseInt(parseInt(width
				* (9 / 16))), height = height > window.innerHeight ? window.innerHeight
				: height;

		window.tvpSetting = {
			width : width,
			height : height,
			vid : 'p01880rv9c9',
			vid2 : 'o0171fmfwmf',
			vid_limit : 'z0016v1ocio',
			vid_short : 'f162169s71x',
			lid : '123002500'
		};

	var video = new tvp.VideoInfo();
	video.setVid(tvpSetting.vid);
	var player = new tvp.Player();
	player.create({
		width : tvpSetting.width,
		height : tvpSetting.height,
		video : video,
		modId : "mod_player",
		/* playerType : 'html5', */
		isHtml5UseFakeFullScreen : true
	});
</script> -->
<script type="text/javascript">
	 	var fullscreen = function(elem) {
            var prefix = 'webkit';
              if ( elem[prefix + 'EnterFullScreen'] ) {
                return prefix + 'EnterFullScreen';
              } else if( elem[prefix + 'RequestFullScreen'] ) {
                return prefix + 'RequestFullScreen';
              };
            return false;
        };
        function autoFullScrenn(v){
            var ua   = navigator.userAgent.toLowerCase(); 
            var Android = String(ua.match(/android/i)) == "android";
            if(!Android) return;//非android系统不使用;
            var video  = v,doc = document;
            var fullscreenvideo = fullscreen(doc.createElement("video"));
            if(!fullscreen) {
                alert("不支持全屏模式");
                return;
            }
            video.addEventListener("webkitfullscreenchange",function(e){
                if(!doc.webkitIsFullScreen){//退出全屏暂停视频
                    this.pause();
                };
            }, false);
            video.addEventListener("click", function(){
                this.play();
                video[fullscreenvideo]();
            }, false);
 
            video.addEventListener('ended',function(){
                doc.webkitCancelFullScreen(); //播放完毕自动退出全屏
            },false);
 
        };
        var v = document.getElementById('video');
        autoFullScrenn(v);
       
</script>
</head>

<body class="child-food-page">
    <h2 id="title"></h2>
 <div>
    <p class="date-info"><span id="dates"></span></p>
  <p class="read-info">阅读 <span id="readcount"></span></p>
 </div>
 <div class="img-div" id="picture">
    <img id="image_url" src="" width="670" height="232" alt=""/>
 </div>
 <div id="video"></div>
 <p id="content"></p>
</body>
</html>

